import request from '@/utils/request'

//分页查询
export function getList(data) {
    return request({
        url: '/repairApply/findRepairApplyPageList',
        method: 'post',
        data
    })
}

//详情
export function getDetail(processId) {
    return request({
        url: "/repairApply/findViolativeApplyDetail/" + processId,
        method: 'get',
    })
}

//新增维修订单
export function getRepairOrder(data) {
    return request({
        url: '/repairApply/createRepairApply',
        method: 'post',
        data
    })
}

//删除维修单
export function delRepairOrder(data) {
    return request({
        url: '/repairApply/cancelRepairApply',
        method: 'post',
        data
    })
}